<template>
	<view>
		<!-- #ifdef H5 -->
		<view class="link-tip">为您转至新链接</view>
		<!-- #endif -->
		<!-- #ifndef H5 -->
		<web-view :src="url"></web-view>
		<!-- #endif -->
	</view>
</template>

<script>
	export default {
		data(){
			return{
				url:"",
			}
		},
		onLoad(e) {
			let url = decodeURIComponent(e.link);
			// #ifdef H5
			location.href = decodeURIComponent(url);
			// #endif
			// #ifndef H5
			this.url = url;
			// #endif
		},
	}
</script>

<style>
	.link-tip {
		min-height: 500rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 28rpx;
	}
</style>
